
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<body>
<ul id="ul">
	<li class="li-1"></li>
	<li class="li-2"></li>
	<li class="li-3"></li>
	<li class="li-4"></li>
	<li class="li-5"></li>
	<li class="li-6"></li>
	<li class="li-7"></li>
</ul>
<script type="text/javascript" src="jquery-3.2.1.min.js"></script>
<script>
$(function(){
	
var d = new Date();

var weekday=new Array(7);
weekday[0]="周日";
weekday[1]="周一";
weekday[2]="周二";
weekday[3]="周三";
weekday[4]="周四";
weekday[5]="周五";
weekday[6]="周六";
var str=d.getFullYear()+'年'+(d.getMonth() + 1)+'月'+d.getDate()+'日'+'('+weekday[d.getDay()]+')';
var x = document.getElementById("demo");
alert(str);

});

</script>
</body>
</html>
 